* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #4e3b23; /* Marrón oscuro */
    background: #f6f1e7; /* Beige claro */
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header, .site-footer {
    text-align: center;
    width: 98vw;
    max-width: 98vw;
    margin-left: 1vw;
    margin-right: 1vw;
    margin-bottom: 50px;
    background: linear-gradient(135deg,
        rgba(181, 136, 99, 0.95) 0%,   
        rgba(222, 184, 135, 0.95) 50%, 
        rgba(120, 72, 36, 0.95) 100%   
    );
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(120, 72, 36, 0.18);
    border: 2px solid #8d6742;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

h1 {
    font-size: 3.5em;
    color: #fff8f0;
    text-shadow: 2px 2px 8px #8d6742;
    margin-bottom: 15px;
    font-weight: bold;
}

.subtitle {
    font-size: 1.4em;
    color: #f2e3c6;
    font-weight: 500;
    margin-bottom: 30px;
}

.accessibility-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f2e3c6;
    border: 2px solid #b58863;
    border-radius: 12px;
    padding: 16px;
    z-index: 1000;
    display: flex;
    gap: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(120, 72, 36, 0.13);
}

.accessibility-controls button,
.accessibility-controls select {
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background-color: #e6d3b3;
    color: #4e3b23;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    box-shadow: 0 2px 6px rgba(120, 72, 36, 0.08);
}

.accessibility-controls button:hover,
.accessibility-controls select:hover {
    background-color: #b58863;
    color: #fff8f0;
    transform: scale(1.05);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card {
    background: #f9f6f2; /* Muy claro, casi blanco */
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid #e6d3b3;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 4px 16px rgba(181, 136, 99, 0.10);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(181, 136, 99, 0.08), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(120, 72, 36, 0.18);
    background: #f2e3c6; /* Arena claro */
    border-color: #b58863;
}

.card-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
    color: #b58863;
}

.card h3 {
    color: #8d6742;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px #e6d3b3;
    font-weight: bold;
}

.card p {
    color: #4e3b23;
    font-size: 1em;
    line-height: 1.5;
}

.site-footer {
    text-align: center;
    width: 98vw;
    max-width: 98vw;
    margin-left: 1vw;
    margin-right: 1vw;
    margin-top: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg,
        rgba(181, 136, 99, 0.95) 0%,
        rgba(222, 184, 135, 0.95) 50%,
        rgba(120, 72, 36, 0.95) 100%
    );
    backdrop-filter: blur(6px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #8d6742;
}



.welcome-text {
    background: #f2e3c6;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 2px solid #e6d3b3;
    color: #4e3b23;
}

.welcome-text p {
    color: #4e3b23;
    font-size: 1.2em;
    text-align: center;
    line-height: 1.7;
    font-weight: 500;
}

section img {
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(181, 136, 99, 0.18);
    display: block;
    margin: 20px auto;
    border: 2px solid #e6d3b3;
}
section {
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .footer-buttons {
        flex-direction: column;
        align-items: center;
    }
    
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }














